package com.mycity.bean;

import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;

public class Comment {
	
	private int userId;
	
	private int postId;
	
	private int CommentId;
	
	private String CommentDate;
	
	private String CommentContent;
	
	private int hasStar;

	

    public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getPostId() {
		return postId;
	}

	public void setPostId(int postId) {
		this.postId = postId;
	}

	public int getCommentId() {
		return CommentId;
	}

	public void setCommentId(int commentId) {
		CommentId = commentId;
	}

	public String getCommentDate() {
		return CommentDate;
	}

	public void setCommentDate(String commentDate) {
		CommentDate = commentDate;
	}

	public String getCommentContent() {
		return CommentContent;
	}

	public void setCommentContent(String commentContent) {
		CommentContent = commentContent;
	}

	public int getHasStar() {
		return hasStar;
	}

	public void setHasStar(int hasStar) {
		this.hasStar = hasStar;
	}

	@JsonCreator
	public Comment(@JsonProperty("userId") int userId, @JsonProperty("postId")  int postId, @JsonProperty("CommentDate") String CommentDate, @JsonProperty("CommentId") int CommentId,
			@JsonProperty("CommentContent") String CommentContent, @JsonProperty("hasStar") int hasStar){
		this.CommentId = CommentId;
		this.CommentContent = CommentContent;
		this.CommentDate = CommentDate;
		this.userId = userId;
		this.postId = postId;
		this.hasStar = hasStar;
	}
    
	/**
     * Empty Constructor. Needed for JAXB.
     */
	public Comment(){
		
	}
}
